package com.mallcloud.mall.mall.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.mallcloud.mall.common.core.util.ValidGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@ApiModel(value = "XglQRCodePaymentModel", description = "立牌信息视图")
@Data
@TableName("V_MSC_QRCODE")
public class XglQRCodePaymentModel implements Serializable {
	private static final long serialVersionUID = 1L;

	@JsonSerialize(using = ToStringSerializer.class)
	@NotNull(message = "ID为空", groups = {ValidGroup.Update.class})
    @ApiModelProperty(value = "商户编码")
    @TableId(value = "MFCODE", type = IdType.ASSIGN_ID)
    private Long merchantCode;

    @ApiModelProperty(value = "商户名称")
    @TableField("MFCNAME")
    private String merchantName;

    @ApiModelProperty(value = "商户手机号码")
    @TableField("SBLXFS")
    private String merchantPhone;

    @ApiModelProperty(value = "商品收款机编号")
    @TableField("SYJID")
    private String commodityCashRegisterNumber;

    @ApiModelProperty(value = "收银机编号")
    @TableField("SYJSHID")
    private String cashRegisterNumber;

    @ApiModelProperty(value = "POS终端号")
    @TableField("SYJPOSKEY")
    private String terminalPOSNumber;

    @ApiModelProperty(value = "商品编码")
    @TableField("GMFGDID")
    private String productCode;

    @ApiModelProperty(value = "商品条码")
    @TableField("GBBARCODE")
    private String productBarcode;

    @ApiModelProperty(value = "商品名称")
    @TableField("GBCNAME")
    private String productName;

}
